{% extends "base.html" %}

{% block title %}HDBox 管理启动页{% endblock %}
{% block page_content %}
<div class="page-header">
    <h1>管理启动页</h1>
</div>


{% if img_url %}
<div class="container">
  <h3>当前启动页图片</h3>

  <img src='{{img_url}}' class="img-thumbnail" width="40%" height="auto">

<hr width="100%" color=#987cb9 SIZE=3>
  <form action="/upload_launch_img" method="POST">

    <div class="form-group">
     <label for="name">上传新启动页图片</label>
     <input type="text" class="form-control" id="new_img" name="new_img_url" width="40%" placeholder="请输入图片链接">
    </div>

    <!-- <div class="form-group">
        <label for="inputfile">上传新启动页图片</label>
        <input type="file" id="inputfile" name="file">
     </div> -->
    <input type="submit" class="btn btn-default" value="上传" />
   </form>
</div>
{% endif %}

{% endblock %}
